<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo3-8</title>
</head>
<body>
<script src="/js/vue.js"></script>
<div id="app">
   <ul>
    <li v-for="(book,index) in books">{{index}}-{{book.title}}</li>
   </ul>
</div>
</body>
<script>
  let vm = new Vue({
    el:"#app",
    data:{ 
      books:[
        {title:"Vue无难事"},
        {title:"VC++深入详解"},
        {title:"Servlet/JSP深入详解"}
      ]
    }
})
</script>
</html>